import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import xiying from '../views/xiying'
import readview from '../views/readview'
import mysearch from '../views/mysearch'
import catelogue from '../views/catelogue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/xiying',
    name:'xiying',
    component:xiying
  },
  {
    path: '/readview',
    name: 'readview',
    component:readview
  },
  {
    path:'/mysearch',
    name:'mysearch',
    component:mysearch
  },
  {
    path:'/catelogue',
    name:'catelogue',
    component:catelogue
  }
  
]

const router = new VueRouter({
  routes
})

export default router
